<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:replace="main_layout::html_header(_, _)">
</head>
 
<body class="hold-transition skin-blue fixed">
<div class="wrapper">

<header class="main-header" th:replace="main_layout::header">
</header>

<aside class="main-sidebar">
	<section class="sidebar" th:replace="main_layout::menu">
	</section>
</aside>

<div class="content-wrapper">
<section class="content-header">
	<h1><a th:href="@{/}">首页</a><small><a th:href="@{/apply/blank}">空白合同申请</a></small></h1>
</section>
	
<section class="content">

<div class="box box-info">

<div class="box-body">
<div class="row">
<div class="col-sm-6 col-sm-offset-3">
<div class="box box-solid bg-teal disabled color-palette" style="padding-top: 20px; text-align: center; margin-top: 20px">
<h2 style="margin-top: 30px">空白合同创建成功</h2>
<h3 style="margin-top: 30px">合同编号为：<span th:text="${ct.no}"></span></h3>
<h5 style="margin-top: 30px; color: red;" th:utext="${message}"></h5>
<div class="box-footer bg-teal disabled color-palette" style="margin-top: 30px">
	<button type="button" class="btn btn-primary " onclick="cont_view()">&nbsp;&nbsp;查看合同&nbsp;&nbsp;</button> &nbsp;&nbsp;
	<button type="button" class="btn btn-primary " onclick="goto_list()">&nbsp;&nbsp;返回列表&nbsp;&nbsp;</button> &nbsp;&nbsp;
	<button type="button" class="btn btn-primary " th:onclick="${'apply_audit(' + ct.id + ')'}">&nbsp;&nbsp;申请打印合同&nbsp;&nbsp;</button> 
</div>
</div>

</div>
</div>
</div>

</div>

</section>
</div>
  
<footer class="main-footer" th:replace="main_layout::footer">
</footer>


<aside class="control-sidebar control-sidebar-light">
    
</aside>

<div class="control-sidebar-bg" ></div>

</div>

<div th:replace="fragment/audit_template::apply_audit('index')"></div>

<script th:src="@{/pageoffice.js}" id="po_js_main"></script>
<script>

function cont_view() {
	POBrowser.openWindowModeless('/contract/view/[[${ct.id}]]' , 'width=1200px;height=800px;');
}

function goto_list() {
	location.href = "[[@{/index}]]";
}
</script>
</body>
</html>
